package cc.cix.hq.common.core.entity.org;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author cix
 */
@Data
@ApiModel(value = "Role对象", description = "角色")
@TableName("t_role")
public class Role implements Serializable {

    private static long serialVersionUID = -1714476694755654924L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("角色 ID")
    private Long id;

    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("角色名称")
    private String roleName;

    @TableField(condition = SqlCondition.LIKE)
    @ApiModelProperty("角色描述")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @ApiModelProperty("菜单 ID 列表")
    private List<Long> menuIds;

}
